//
//  NSString+Additions.h
//  OCStarterProject
//
//  Created by huaya on 2025/10/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Additions)

/// 判断字符串是否为空
- (BOOL)isNotEmpty;

/// 安全的字符串，如果为空返回空字符串
- (NSString *)safeString;

/// 去除字符串两端的空格
- (NSString *)trim;

/// 判断是否为有效的邮箱格式
- (BOOL)isValidEmail;

/// 判断是否为有效的手机号格式
- (BOOL)isValidPhoneNumber;

/// 将字符串转换为MD5
- (NSString *)md5String;

/// 获取字符串的拼音
- (NSString *)pinyinString;

@end

NS_ASSUME_NONNULL_END
